<template>
	<div>
		<p>son</p>
		<div>{{ msg }}</div>
		<Grandson />
	</div>
</template>
<script>
import Grandson from "./grandson.vue";
export default {
	name: "",
	components: { Grandson },
	data() {
		return {};
	},
	provide: {
		msg: "我是provide要传递的数据(根组件)",
	},
	inject: ["msg"],
	mounted() {},
	methods: {},
};
</script>
<style lang="" scoped></style>
